package kr.hyunist.androidcomplete01saeildamil.ch17;

import kr.hyunist.androidcomplete01saeildamil.R;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

public class CallOtherEx extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.callotherex);
	}

	public void mOnClick(View v) {
		Intent intent = null;

		switch (v.getId()) {
		case R.id.callotherexwebbtn:
			intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
			break;

		case R.id.callotherexdialbtn:
			intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:053-752-8425"));
			break;

		case R.id.callotherexpicturebtn:
			intent = new Intent(Intent.ACTION_VIEW);
			
			break;

		case R.id.callotherexotherbtn:

			break;
		}
		
		startActivity(intent);

	}
}
